/*
 * Copyright (C) 2023 xuexiangjys(xuexiangjys@163.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package com.xuexiang.templateproject.bean;

//import anet.channel.strategy.dispatch.DispatchConstants;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

public final class PrintV2Entity {
    @NotNull
    private final String fileKey;
    @NotNull
    private final String fileName;

    public PrintV2Entity(@NotNull String fileKey, @NotNull String fileName) {
        Intrinsics.checkNotNullParameter(fileKey, "fileKey");
        Intrinsics.checkNotNullParameter(fileName, "fileName");
        this.fileKey = fileKey;
        this.fileName = fileName;
    }

    public static /* synthetic */ PrintV2Entity copy$default(PrintV2Entity printV2Entity, String str, String str2, int i2, Object obj) {
        if ((i2 & 1) != 0) {
            str = printV2Entity.fileKey;
        }
        if ((i2 & 2) != 0) {
            str2 = printV2Entity.fileName;
        }
        return printV2Entity.copy(str, str2);
    }

    @NotNull
    public final String component1() {
        return this.fileKey;
    }

    @NotNull
    public final String component2() {
        return this.fileName;
    }

    @NotNull
    public final PrintV2Entity copy(@NotNull String fileKey, @NotNull String fileName) {
        Intrinsics.checkNotNullParameter(fileKey, "fileKey");
        Intrinsics.checkNotNullParameter(fileName, "fileName");
        return new PrintV2Entity(fileKey, fileName);
    }

    public boolean equals(@Nullable Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof PrintV2Entity)) {
            return false;
        }
        PrintV2Entity printV2Entity = (PrintV2Entity) obj;
        return Intrinsics.areEqual(this.fileKey, printV2Entity.fileKey) && Intrinsics.areEqual(this.fileName, printV2Entity.fileName);
    }

    @NotNull
    public final String getFileKey() {
        return this.fileKey;
    }

    @NotNull
    public final String getFileName() {
        return this.fileName;
    }

    public int hashCode() {
        return (this.fileKey.hashCode() * 31) + this.fileName.hashCode();
    }

    @NotNull
    public String toString() {
        return "PrintV2Entity(fileKey=" + this.fileKey + ", fileName=" + this.fileName + ')';
    }
}